package org.jeecg.modules.demo.crm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.*;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;

/**
 * @Description: 发票拆分
 * @Author: jeecg-boot
 * @Date:   2025-06-21
 * @Version: V1.0
 */
@Data
@TableName("c_invoice_split")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor // 自动生成无参构造方法
@AllArgsConstructor // 自动生成全参构造方法
@ApiModel(value="c_invoice_split对象", description="发票拆分")
public class CInvoiceSplit implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**发票id*/
	@Excel(name = "发票id", width = 15, dictTable = "c_invoice_apply", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "c_invoice_apply", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "发票id")
        private String invoiceId;
	/**付款记录id*/
	@Excel(name = "付款记录id", width = 15, dictTable = "c_payment_request", dicText = "remark", dicCode = "id")
	@Dict(dictTable = "c_payment_request", dicText = "remark", dicCode = "id")
    @ApiModelProperty(value = "付款记录id")
    private String requestId;
	/**发票总金额*/
	@Excel(name = "发票总金额", width = 15)
    @ApiModelProperty(value = "发票总金额")
    private BigDecimal amount;
	/**发票拆分金额*/
	@Excel(name = "发票拆分金额", width = 15)
    @ApiModelProperty(value = "发票拆分金额")
    private BigDecimal splitAmount;
	/**项目id*/
	@Excel(name = "项目id", width = 15, dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目id")
    private String projectId;
	/**子项目id*/
	@Excel(name = "子项目id", width = 15, dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
	@Dict(dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
    @ApiModelProperty(value = "子项目id")
    private String subProjectId;
	/**分包商id*/
	@Excel(name = "分包商id", width = 15, dictTable = "c_contractor_info", dicText = "contact_name", dicCode = "id")
	@Dict(dictTable = "c_contractor_info", dicText = "contact_name", dicCode = "id")
    @ApiModelProperty(value = "分包商id")
    private String contractorId;
}
